<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var checkStockEditUrl="{:U('Stock/checkStockSave')}";//更新数据
	var getcheckStockUrl="{:U('Stock/get_checkStock')}";
	var checkStockDelUrl="{:U('Stock/checkStockDel')}";
	var checkStockExamineUrl="{:U('Stock/examinecheckStock')}";
	var checkStockClearUrl="{:U('Stock/checkStockClear')}";
	var checkStockUndoUrl="{:U('Stock/checkStockUndo')}";
	var checkStockInfoUrl="{:U('Stock/checkStockInfo')}";
	var erpId="{:I('id')}";//erp企业对应id
	<!-- var checkStock_order_no="{$order_no}";//单号 -->
	var checkStock_ordernoUrl="{:U('Stock/ajax_checkstock_orderno')}";//ajax入库单号
	<!-- using('../../../default/js/checkStock.js'); -->
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/checkStock.js"></script>

	<table id="checkStockDatagrid" toolbar="#checkStock_tb"></table>
	<!-- 添加 -->
	<div id="checkStockAddDialog" class="easyui-dialog" title="规则添加" style="width:500px;padding:10px 20px"
        closed="true" buttons="#checkStockAddButtons"  modal="true">
         <form id="checkStockAddForm" method="post" novalidate>
			<div class="fitem">
                <label>申请单号</label>
                <input name="order_no" id="checkStock_order_no" class="easyui-textbox" data-options="readonly:true,required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
            <div class="fitem">
                <label>申请部门</label>
                <select class="easyui-combobox" name="section_no" id="checkStock_section_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="sectionlist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>制单人</label>
                <select class="easyui-combobox" name="people_make_no" id="checkStock_people_make_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>申请人</label>
                <select class="easyui-combobox" name="people_purchasing_no" id="checkStock_people_purchasing_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
			<div class="fitem">
                <label>账册编号</label>
                <select class="easyui-combobox" name="manua_id" id="checkStock_manuallist" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="manuallist" id="vo">
                        <option value="{$vo['code']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
			
         </form>
    </div>
    <div id="checkStockAddButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="checkStockObj.add('{:U('Stock/checkStockAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#checkStockAddDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加 -->
	<!-- 物理盘库添加 -->
	<div id="checkStockAddAllDialog" class="easyui-dialog" title="规则添加" style="width:500px;padding:10px 20px"
        closed="true" buttons="#checkStockAddAllButtons"  modal="true">
         <form id="checkStockAddAllForm" method="post" novalidate>
			<div class="fitem">
                <label>申请单号</label>
				<input name="manua_id" id="manua_id_edit" type="hidden" />
                <input name="order_no" id="checkStock_order_nos" class="easyui-textbox" data-options="readonly:true,required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
            <div class="fitem">
                <label>申请部门</label>
                <select class="easyui-combobox" name="section_no" id="checkStock_section_nos" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="sectionlist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>制单人</label>
                <select class="easyui-combobox" name="people_make_no" id="checkStock_people_make_nos" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>申请人</label>
                <select class="easyui-combobox" name="people_purchasing_no" id="checkStock_people_purchasing_nos" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
         </form>
    </div>
    <div id="checkStockAddAllButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="checkStockObj.addAll('{:U('Stock/checkStockAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#checkStockAddAllDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加 -->
	<!-- 编辑 -->
    <div id="checkStockEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#checkStockEditButtons"  modal="true">
        <form id="checkStockEditForm" method="post" novalidate>    
			<div class="fitem">
                <label>申请单号</label>
				<input name="id"  type="hidden" />
                <input name="order_no" class="easyui-textbox" data-options="readonly:true,required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
            <div class="fitem">
                <label>申请部门</label>
                <select class="easyui-combobox" name="section_no" id="checkStock_section_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="sectionlist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>制单人</label>
                <select class="easyui-combobox" name="people_make_no" id="checkStock_people_make_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>申请人</label>
                <select class="easyui-combobox" name="people_purchasing_no" id="checkStock_people_purchasing_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
			<div class="fitem">
                <label>账册编号</label>
                <select class="easyui-combobox" name="manua_id" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="manuallist" id="vo">
                        <option value="{$vo['code']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
        </form>
    </div>
    <div id="checkStockEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="checkStockObj.save('{:U('Stock/checkStockSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#checkStockEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
    <!-- 搜索栏 -->
    <div id="checkStock_tb">
        <form id="checkStockSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="checkStockObj.showAll()">全部</a>     
			 
			 盘库单号:<input class="easyui-textbox" name="order_no" style="width:150px;height:30px;"> 
			 账册编号:<input class="easyui-textbox" name="manua_id" style="width:150px;height:30px;"> 
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
		<a href="javascript:void(0)" onclick="checkStockObj.infoBar()" class="easyui-linkbutton" data-options="iconCls:'icon-information',plain:true">详情</a>
		<a href="javascript:void(0)" onclick="checkStockObj.addBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">账册盘库添加</a>
		<a href="javascript:void(0)" onclick="checkStockObj.addAllBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">物理盘库添加</a>
        <a href="javascript:void(0)" onclick="checkStockObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
        <a href="javascript:void(0)" onclick="checkStockObj.removeBar()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
		<a href="javascript:void(0)" onclick="checkStockObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="checkStockObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
        <a href="javascript:void(0)" onclick="checkStockObj.examineBar(1)" class="easyui-linkbutton" data-options="iconCls:'icon-key',plain:true">审核通过</a>
		<a href="javascript:void(0)" onclick="checkStockObj.examineBar(2)" class="easyui-linkbutton" data-options="iconCls:'icon-key_delete',plain:true">审核不通过</a>
		<a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#checkStock_mm1',iconCls:'icon-recycle'">回收站</a>
		<div id="checkStock_mm1" style="width:150px;">
			<div onclick="checkStockObj.recycle()">查看</div>
			<div onclick="checkStockObj.undoBar()" data-options="iconCls:'icon-undo'">恢复</div>
			<div onclick="checkStockObj.clearBar()" data-options="iconCls:'icon-remove'">删除</div>
		</div>
    </div>
    <!-- /搜索栏 -->
</body>